/**
 * Created by LeungZ on 2016/9/8.
 */

import temp from './config.html';
import ctrl from './config.ctrl.js';


export default angular.module('ctg-k8sconsole').config(['$stateProvider', $stateProvider=> {
    $stateProvider.state('image-config', {
        url: '/my/image/image-config?:id',
        templateUrl: temp,
        controller: ctrl,
        controllerAs: 'list'
        // resolve: {
        //     list: ['imageSrv', 'ctgNotification', function (imageSrv, ctgNotification) {
        //         return imageSrv.getConfigList({currentPage: 1}).catch(function (data) {
        //             ctgNotification.error('获取配置列表数据有误.');
        //         });
        //     }]
        // }
    })
}]);